import { PageRequest } from './Common';
import { CertInfo } from '@/types/Cert';

export interface CustomerPageRequest extends PageRequest {
  name?: string;
  sex?: number;
  agentId?: number;
}

export interface CustomerPageRequest2 extends PageRequest {
  client_name?: string;
  parentId?: number | string;
}

/**
 * 对客户信息进行新增或者修改
 */
export interface CustomerInfo {
  // 主键
  client_id: number;
  name: string;
  // 0-女 1-男
  sex: number;
  // 15-18位
  IDcard?: string;
  // Y-m-d
  birthday?: string;
  agent: number;
  company: number;
  // 挂靠到期时间 Y-m-d
  offce_endtime: string;
  // 备注
  note: string;
  // 社保所在地
  ss_location: string;
  // 社保是否可转 "0"-不可转 "1"-可转
  ss_moveable: string;
}

export interface CustomerDetail {
  client: CustomerInfo;
  datalist: CertInfo[];
}
